import FetchUtil from '../utils/FetchUtil'

export function getProductList(data) {
	return FetchUtil.fetchNet('api/v1/index/infoList?page='+page).then(resp => resp.data)
}

export function getTypesAndProduct(data) {
	return FetchUtil.get('purchase/v1/loadProducts',data).then(resp => resp.data)
}

export function loginGo(data) {
	return FetchUtil.post('purchase/v1/login/in',data).then(resp => resp.data)
}